<?php

namespace app\index\controller;

use think\Db;
use app\index\model\Collect as collectModel;

class Collect extends Base
{
	public function addCollection()
    {
      //先验证传过来的类型和id是否有效
            //code.....
      //如果有效则添加收藏 
     if(request()->isPost()){
        $collect = new collectModel();
        $collect->addCollection();
      } 

    }
}